<script type="text/javascript">
function feiyong(){
	$("#feiyongs").modal('open');
}

function sumfeiyong(){
	var pid = $("#pidfeiyong").val();
	$.post('${ctx}/main/suanfeiyong',{"pid":pid},function(data){
	     if(data.cost!=null){
	    	 $("#myalertbody").html("住院费用（元）："+data.cost);
			 $("#my-alert").modal('open');
	     }else{
	    	 $("#myalertbody").html("没有信息！");
			 $("#my-alert").modal('open');
	     }
	},'json');
}
</script>

<div class="am-modal am-modal-no-btn" tabindex="-1" id="feiyongs">
		<div class="am-modal-dialog"
			style="width: 240px; border-radius: 10px;">
			<div class="am-modal-hd">
				<h3>请输入病人序列号</h3>
				<a href="javascript: void(0)" class="am-close am-close-spin"
					data-am-modal-close>&times;</a>
			</div>
			<div class="am-form am-form-horizontal">
				<div class="am-form-group">
					<div class="am-u-sm-20">
						<input id="pidfeiyong" style="width: 200px;" type="text"
							class="am-form-field am-round" placeholder="病人序列号"
							required="required" />
					</div>
				</div>
				<div class="am-form-group">
					<div class="am-u-sm-15 am-u-sm-offset-2">
						<button class="am-btn am-btn-default" onclick="sumfeiyong()">确定</button>
					</div>
				</div>
			</div>
		</div>
	</div>
	
